home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Tele
/
C
/
Comet2.1.3.cpt
/
Comet
/
tninit.asm
< prev
next >
Wrap
Assembly Source File
|
1990-06-13
|
469b
|
45 lines
public _A5init
public _getmyA5
public _setA5
public _int_off
public _int_on
bss int_save,4
cseg
_A5init
lea aGlobal,a0
move.l a5,(a0)
rts
_getmyA5
move.l a5,d0 ; return old a5 (C)
move.l aGlobal,a5
rts
_setA5
move.l 4(a7),a5
rts
aGlobal
dc.l $0
_int_off:
move.w sr,d0
andi.w #$600,d0
move.w d0,int_save
ori.w #$600,sr
rts
_int_on:
move.w sr,d0
andi.w #$7077,d0
or.w int_save,d0
move.w d0,sr
rts
end